from django.conf.urls.defaults import patterns, url
from apps.dashboard.views import (
    DashboardIndex, DashboardArticleNew, DashboardArticleEdit,
    DashboardArticleDelete, DashboardLogout)

urlpatterns = patterns(
    '',

    url(r'^$',
        view=DashboardIndex.as_view(),
        name='dashboard-index'),

    url(r'^new/$',
        view=DashboardArticleNew.as_view(),
        name='dashboard-article-new'),

    url(r'^edit/(?P<key>[-\w]+)/$',
        view=DashboardArticleEdit.as_view(),
        name='dashboard-article-edit'),

    url(r'^delete/(?P<key>[-\w]+)/$',
        view=DashboardArticleDelete.as_view(),
        name='dashboard-article-delete'),

    url(r'^logout/$',
        view=DashboardLogout.as_view(),
        name='dashboard-logout')
)
